﻿{include file="public/header" /}

</head>

<body>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span> 财务管理
		<span class="c-gray en">&gt;</span> 锁粉红包
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
		<div class="form form-horizontal" id="form-article-add">
			<div id="tab-system" class="HuiTab">
				<div class="tabBar cl">
					<a style="color: black;text-decoration:none;" href="{:url('sys/gold_reg')}"><span>锁粉红包</span></a>
					<a style="color: black;text-decoration:none;" href="{:url('sys/gold_sm')}"><span>扫码红包</span></a>
					<a style="color: black;text-decoration:none;" href="{:url('sys/gold_share')}"><span>分享红包</span></a>
				</div>

				<div class="tabCon">
					<table class="table table-border table-bordered table-bg">
					<thead>
						<tr class="text-c">						
							<th>商家名称</th>
							<th>手机号</th>
							<th>人数</th>
							<th>红包金额</th>
							<th>领取规则</th>
							<th>创建时间</th>
							<th>失效时间</th>
							<th>状态</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						{volist name="list" id="vo" empty="这里没有数据"}
						<tr class="text-c">
							<td>{$vo.agent_name}</td>
							<td>{$vo.mobile}</td>
							<td>{$vo.user_num}</td>
							<td>{$vo.gold_sum}</td>
							<td>
								{if $vo.hb_type==1}
								平均
								{else/}
								随机
								{/if}
							</td>							
							<td>{$vo.add_time}</td>
							<td>{$vo.end_time}</td>
							<td>
								{if $vo.status==1}
								开启
								{else/}
								关闭
								{/if}
							</td>
							<td class="td-manage">
								<a title="" href="javascript:;" onclick="gold_list('红包领取记录','{:url('sys/gold_log',['gold_id'=>$vo.id])}','500','400')" class="ml-5">领取记录</a>
							</td>
						</tr>
						{/volist}
					</tbody>
					</table>
					<style>
					.pagination li{float: left;}
					</style>
					<div id="pageNav" class="pageNav">{$list->render()}</div>
			</div>
		</div>
	</div>
	{include file="public/footer" /}

	<script type="text/javascript">

		$(function() {
			$('.skin-minimal input').iCheck({
				checkboxClass: 'icheckbox-blue',
				radioClass: 'iradio-blue',
				increaseArea: '20%'
			});
			$("#tab-system").Huitab({
				index: 0
			});
		});
		
		/*鼓励金红包领取记录*/
		function gold_list(title, url, w, h) {
			layer_show(title, url, w, h);
		}
	</script>